import request from '@/utils/request'
export function greatControlList(data) { //重大作业管控计划-列表
    return request({
        url: '/project-management/api/project/major-work/page',
        method: 'POST',
        data,
    })
}
export function greatControlAdd(data) { //重大作业管控计划-添加
    return request({
        url: '/project-management/api/project/major-work',
        method: 'POST',
        data,
    })
}
export function greatControlDetails(id) { //重大作业管控计划-详情
    return request({
        url: '/project-management/api/project/major-work/' + id,
        method: 'GET',
    })
}
//原 del
export function greatControlDelete(id) { //重大作业管控计划-删除
    return request({
        url: '/project-management/api/project/major-work/del/' + id,
        method: 'get',
    })
}
//原 put
export function greatControlEdit(data) { //重大作业管控计划-编辑
    return request({
        url: '/project-management/api/project/major-work/put',
        method: 'post',
        data,
    })
}
export function greatControlExport(data) { //重大作业管控计划-导出
    return request({
        url: '/project-management/api/project/major-work/export',
        responseType: 'arraybuffer',
        method: 'POST',
        data,
    })
}
